import request from '../utils/request'
// !!! 分类页的请求
// 商品列表
const fetchCateLists = (params = {}) => request.get('/cateLists', { params } )
// 商品状态开关
const updateCate = (params = {}) => request.put('/updateCate', params)
// 商品点击编辑弹窗出来的详情
const getCateDetail = (params = {}) => request.get('/cateDetail', { params } )
// 删除分类商品
const delCate = (params = {}) => request.delete('/delCate', params)
// 增加分类商品
const addCate = (params = {}) => request.put('/addCate', params)


export {
  fetchCateLists,
  updateCate,
  getCateDetail,
  delCate,
  addCate
}